/**Filename: queue.c
 * Author(s): Vladimir Dudnic, Michael Groenier, Derek Fleener
 * Winter 2013 TCSS422
 * Project 2
 */
#include"queue.h"
#include<stdlib.h>
#include<string.h>

int queue_init(queue* the_queue,int the_initSize){
  the_queue->backingStore = (arrayList*)malloc(sizeof(arrayList));
  init_list(the_queue->backingStore, 1);
  return 0;
}

void* queue_dequeue(queue* the_queue){
  return list_remove(the_queue->backingStore, 0);
}

int queue_enqueue(queue* the_queue, void* the_item){
  return list_add(the_queue->backingStore, the_item);
}
